const crypto = require('crypto');
module.exports = {
    // 密码加密
    help(pwd) {
    const secret = 'abcdefg';
    const hash = crypto.createHmac('sha256', secret)
                   .update(pwd)
                   .digest('hex');
    return hash
    }
}